<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>next</title>
</head>
<body>

<script>
   let list=[10,20,30];
   let myStr="你好啊";
   let myMap=new  Map();
   myMap.set('JS','Javascript');
   myMap.set('PL','perl');
   myMap.set('PY','python');

   for(let val of list){
       console.log(val);//10 20 30
   }
   for (let val of myStr){
       console.log(val);
   }
   for (let [key,value] of myMap){
       console.log(key,value);
   }

   let it =myMap.values();
   let tmp;
   while (tmp=it.next()){
       if (tmp.done)
           break;
       console.log(tmp.value,tmp.done);//Javascript false  perl false python false
   }
</script>
</body>
</html>
